/**
 * 处理参数的方法（为了后面开发可拓展）
 * @params {Object} opts  -- 配置参数
 * @params {String} url  -- 请求域名
 * @returns {Object} { url } -- 请求域名
 * @returns {Object} { errType } -- 错误处理方式
 */

export function dealOpts(url, opts) {
  return {
    url,
    errType: (opts && opts.errType) || ''
  }
}

export const USER = '/mall/user'
export const FIRM = '/mall/firm'
export const SUPPLY = '/mall/supply'
export const UTILS = '/mall/utils'
export const CRM = '/mall/crm'
export const GENERAL = '/general/utils'
export const ORDER = '/mall/order'
export const FIRMORDER = '/firm/order'
export const COURSE = '/firm/course'
export const LINK = '/mall/link'
export const FINANCE = '/mall/finance'
export const FIRM_FINANCE = '/firm/finance'
export const INVENT = '/firm/inventory'
export const firm_inventory = '/firm/inventory'
export const FIRM_STAFF = '/firm/staff'
